package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.jsonschema.JsonSerializableSchema;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.09.13
 */
@Data
@TableName("yx_cs_group")
@ApiModel("用户组实体")
public class YxCsGroupEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "group_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("用户组ID")
    private Long id;

    @ApiModelProperty("用户组名称")
    private String groupName;

    @ApiModelProperty("用户组编码")
    private String groupCode;

    @ApiModelProperty("负责人ID")
    private Long leaderId;

    @ApiModelProperty("负责人名称")
    private String leaderName;

    @ApiModelProperty("渠道ID")
    private Long channelId;

    @ApiModelProperty("渠道名称")
    private String channelName;

    @ApiModelProperty("渠道编码")
    private String channelCode;

    @ApiModelProperty("创建人ID")
    private Long createId;

    @ApiModelProperty("创建人名称")
    private String createName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty("更新人ID")
    private Long updateId;

    @ApiModelProperty("更新人名称")
    private String updateName;

    @ApiModelProperty("状态：0：启用 1：禁用")
    private Integer status;

}